home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
progjrn
/
pj_7_2.arc
/
PWCOMM1.ARC
/
TTYCLS.H
< prev
Wrap
Text File
|
1988-12-04
|
851b
|
38 lines
#ifdef WINDOWS
#define HPS HDC
#endif
/*
* this structure contains most of the information needed
* to use the tty window.
*/
struct TTYWND {
HWND hWnd;
#ifdef WINDOWS
POINT Pos;
HANDLE hVidBuf;
#else
POINTL Pos;
#endif
BYTE *pVidBuf;
short CWidth, CHeight;
short Top, Left;
short Width, Height;
short MaxLines,MaxCols;
short MaxLineLength;
short CurLineOffset;
short oCurrentLine;
short oVidLastLine;
BOOL LFonCR;
BOOL CRonLF;
BOOL Wrap;
BYTE ebitmask;
};
typedef struct TTYWND *PTTYWND;
/* shared function declarations */
InitTTYWindow(PTTYWND,short,short,short,short,short,short,BOOL,BOOL,BOOL,BYTE);
int NEAR TTYDisplay(PTTYWND pTTYWnd, short len, BYTE *str);
void NEAR TTYWndPaint(PTTYWND pTTYWnd, HPS hPS, short top, short bottom);